import React from "react";
//中央商品库列表
export async function goodsInfoPage(params) {
  return await React.$post('/management/goodsInfo/page', params);
}
//商品保存
export async function goodsInfoInsert(params) {
  return await React.$post('/management/goodsInfo/insert', params);
}
//商品发布
export async function goodsInfoUpdateState(params) {
  return await React.$post('/management/goodsInfo/updateState', params);
}
// 商品类目下拉列表
export async function goodsClassifyList(params) {
  return await React.$post('/admin/goodsClassify/list', params);
}
// 同步、批量同步商品至商城
export async function synStoreGoodsByGoodsId(params) {
  return await React.$postJson('/product/api/b/storeGoods/self/synStoreGoodsByGoodsId', params);
}
// 商品详情
export async function goodsInfoDetail(params) {
  return await React.$post('/admin/goodsInfo/getGoodsDetail', params);
}
// 同步门店分页列表
export async function storeInfoListPage(params) {
  return await React.$postJson('/manage/api/b/storeInfo/page', params);
}
// 导出中央商品库商品
export async function exportGoodsDetail(params) {
  return await React.$post('/management/goodsInfo/getAllGoodsDetail', params);
}
// 商品评
export async function goodsEvaluationPage(params) {
  return await React.$post('/management/goodsEvaluation/page', params);
}
//回复评价
export async function goodsEvaluationReply(params) {
  return await React.$post('/management/goodsEvaluation/reply', params);
}
// 修改保存商品
export async function apiGetGoodsInfoUpdate(params) {
  return await React.$post('/management/goodsInfo/update', params);
}
// 商品是否参加活动
export async function whetherCutPriceGoods(params) {
  return await React.$post('/management/goodsInfo/whetherCutPriceGoods', params);
}
// 同步WMS
export async function synchronizeAllGoods(params) {
  return await React.$get('/manage/wms/api/singleItem/synchronizeAllGoods', params);
}
// 同步WMS状态
export async function apiGetSynchronizeAllGoodsStauts(params) {
  return await React.$post('/manage/wms/api/singleItem/getSynchronizeAllGoodsState', params);
}
